div.img {
    margin: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 230px;
}

div.img:hover {
    border: 3px solid #000000;
}

div.img img {
    width: 100%;
    height: auto;
}

div.name {
    padding: 15px;
    text-align: center;
}
.price{
    text-align: center;
    color: red;
    padding: 15px;
}

#core{
    width: 260px;
    padding-left: 30px;
    padding-top: 40px;
    background-color: #C0C0C0;
    height: 313px;
    float: right;
    margin-right: 80px;
    margin-top: 50px;
    opacity:0.9;
    font-size: 16px;
}
#outer{
    height: 600px;
    background: url("/shop/img/banner.jpg") no-repeat;
    background-size: 100%,600px;
}
#header{
    width: 100%;
    height: 100px;
}
#headerImg{
    height: 70px;
    margin-top: 15px;
    margin-left: 50px;
}
#foot{
    width: 420px;
    text-align: center;
    text-align: center;
    position: absolute;
    top: 550px;
    left: 50%;
    margin-left: -210px;
}

#foot a{
    /*padding-top: 20px;*/
    margin:auto 20px;
    color: black;
}
#registerHeader{
    width: 100%;
    height: 100px;
    box-shadow:0px 20px 20px -20px #DCDCDC;
    line-height: 100px;
}
#registerHeader img{
    margin-top: 8px;
    margin-left: 30px;
    height: 80px;
}

#registerBody{
    text-align: center;
    width: 300px;
    height: 300px;
    /*border: 1px solid #000000;*/
    margin: 30px auto;
    padding-top: 60px;
}



.commodity{
    width: 26px;
    height: 300px;
    /*margin-left: 30px;*/
    /*display: inline-block;*/
    background-color: #FFFFFF;
    margin-left: 20px;
    margin-top: 20px;

}

.commodityAll:hover{
    border: 1px solid #000000;
}

.commodityPic{
    margin-top: 10px;
    width: 160px;
    height: 160px;
}
.commodityName{
    margin-top: 15px;
}
.commodityPrice{
    margin-top: 10px;
    color: red;
    text-align: center;
}
/*.pageNum{*/
/*    clear: both;*/
/*    list-style: none;*/
/*    display: inline-block;*/
/*    text-align: center;*/
/*}*/

li{
    list-style: none;
    display: inline-block;
}

.detailsImg{
    width: 470px;
    height: 470px;
    /*border: 0.2px solid #000000;*/
    margin-left: 50px;
}
.detailsName{
    width: 660px;
    margin-top: 20px;
    text-align: center;
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 120px;
}
.detailsPrice{
    display: inline-block;
    /*border: 1px solid #000000;*/
    width: 640px;
    height: 80px;
    position: absolute;
    top: 190px;
    margin-left: 20px;
    text-align: center;
    padding-top: 10px;
    background-color: 	#D3D3D3;
}
.detailsNum{
    position: absolute;
    width: 200px;
    display: inline-block;
    margin-left: 60px;
    padding-left: 20px;
    top: 350px;
}
#buttons{
    width: 600px;
    /*border: 1px solid #000000;*/
    display: inline-block;
    position: absolute;
    top: 450px;
    margin-left: 30px;
}
#buttons input{
    width: 160px;
    height: 50px;
    margin-left: 50px;
    border: 1px solid red;
    font-size: 16px;
}

#updateForm{
    width: 300px;
}
#updateFormDiv{
    width: 300px;
    margin: auto;
    margin-top: 30px;
}

#serchDiv{
    display: inline-block;
    height: 30px;
    border: 3px solid #cccccc;
}



.cartImg{
    width: 98px;
    height: 98px;
}

#cartDetails{
    width: 1000px;
    margin:20px auto;
    border-top: 1px solid #000000;
}

.cartName{
    display: inline-block;
}

#cartDetails tr{
    background-color: #F0FFFF;
}

#submitDiv{
    width: 420px;
    height: 100px;
    border: 1px solid #000000;
    float: right;
    margin-right: 140px;
    margin-top: 0px;
}




/*管理员登录界面*/

#adminLogin{
    margin:0;
    padding: 0;
    font-family: sans-serif;
    background: url("../img/20191220175048131.jpg");
    background-size: cover;
}
.box
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width:400px;
    padding: 40px;
    background:rgba(0,0,0,.8);
    box-sizing:border-box;
    box-shadow:0 15px 25px rgba(0,0,0,.5);
    border-radius: 10px;/*登录窗口边角圆滑*/
}
.box h2
{
    margin:0 0 30px;
    padding:0;
    color:#fff;
    text-align:center;
}
.box .inputBox
{
    position:relative;
}
.box .inputBox input
{
    width: 100%;
    padding: 10px 0;
    font-side:16px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom:30px;/*输入框设置*/
    border:none;
    border-bottom:1px solid #fff;
    outline:none;
    background:transparent;
}
.box .inputBox label
{
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}
.box .inputBox input:focus ~ label,
.box .inputBox input:valid ~ label
{
    top: -18px;
    left: 0;
    color: #03a9f4;
    font-size: 12px;
}
.box  input[type="submit"]
{
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    background: #03a9f4;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}



